﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Syspetro.Core.EventBus
{
    /// <summary>
    /// 事件处理器接口
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface IEventHandler<T> where T : IEventBase
    {
        T DataSource { get; set; }
        bool Run();
        bool Callback();
    }
}
